package com.li.druid.mapper;

import com.li.druid.entity.Student;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;
import java.util.List;
import java.util.Map;

/**
 * 实体类操作Dao
 */
@Component
@Mapper
public interface IStudentMapper extends IBaseMapper<Student>{

    /**
     * 自定义sql
     * @param id
     * @return
     */
    @Select("select * from stu where id = #{id}")
    List<Map<String,Object>> queryForList(Integer id);

}
